//
//  HomePageControl.m
//  HeWeiZhiNeng
//
//  Created by 林建 on 2017/12/13.
//  Copyright © 2017年 YanCeyMichael.github.io. All rights reserved.
//

#import "HomePageControl.h"

@implementation HomePageControl

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = YES;
        self.numberOfPages = 2;
        self.currentPage = 0;
        self.backgroundColor = [UIColor clearColor];
        [self setValue:[UIImage imageNamed:@"sy_fanye_diankuang"] forKeyPath:@"_pageImage"];
        [self setValue:[UIImage imageNamed:@"sy_fanye_dian"] forKeyPath:@"_currentPageImage"];
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
